package edu.ustb.efws.monitor.controller;

import edu.ustb.efws.base.domain.Detector;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("设备监测数据输出")
public class DetectorMonitorVo {
    @ApiModelProperty("设备对象")
    private final Detector detector;
    @ApiModelProperty("是否健康")
    private final boolean health;
    @ApiModelProperty("最后采集时间")
    private final String lastTime;

    public DetectorMonitorVo(Detector detector, boolean health, String lastTime) {
        this.detector = detector;
        this.health = health;
        this.lastTime = lastTime;
    }

    public Detector getDetector() {
        return detector;
    }

    public boolean isHealth() {
        return health;
    }

    public String getLastTime() {
        return lastTime;
    }
}
